﻿using System;

//MEF Reference
using System.ComponentModel.Composition;
using ModularAndPlugin.Core.Contracts;

namespace ModularAndPlugin.Core.Composition
{
    [MetadataAttribute]
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class CommandAttibute : ExportAttribute, ICommandAttribute
    {
        public CommandAttibute(string _cmdKey)
            : base(typeof(Delegate))
        {
            CmdKey = _cmdKey;
        }

        public string CmdKey { get; private set; }
    }
}